package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.system.mapper.SysTemplateMapper;
import com.ruoyi.system.domain.SysTemplate;
import com.ruoyi.system.service.ISysTemplateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.commons.lang.StringUtils;
/**
 * 权限模板Service业务层处理
 * 
 * @author Ele
 * @date 2021-02-01
 */
@Service
public class SysTemplateServiceImpl extends ServiceImpl<SysTemplateMapper,SysTemplate> implements ISysTemplateService {

    @Override
    public List<SysTemplate> queryList(SysTemplate sysTemplate) {
        LambdaQueryWrapper<SysTemplate> lqw = Wrappers.lambdaQuery();
                                                                                                    if (StringUtils.isNotBlank(sysTemplate.getName())){
                        lqw.like(SysTemplate::getName ,sysTemplate.getName());
                    }
                                                                                    return this.list(lqw);
    }




    }
